package com.ibuonline.b2b.stat.dao;

import com.dimeng.common.base.SuperDAO;
import com.ibuonline.b2b.entity.StatMemberDaily;

public class StatMemberDailyDAO extends SuperDAO<StatMemberDaily> {
	/*
	@SuppressWarnings("unchecked")
	public List<StatMemberDaily> queryStatMemberDailysList(String sql,String start,String end){
		 return super.jdbcTemplate.query(sql, new Object[]{start,end}, new RowMapper() {

			@Override
			public Object mapRow(ResultSet rs, int index) throws SQLException {
				StatMemberDaily statMemberDaily = new StatMemberDaily();
				statMemberDaily.setStatDate(rs.getTimestamp("stat_date"));
				statMemberDaily.setFree(rs.getInt("free"));
				statMemberDaily.setPaid(rs.getInt("paid"));
				statMemberDaily.setBuyer(rs.getInt("buyer"));
				statMemberDaily.setSupplier(rs.getInt("supplier"));
				statMemberDaily.setBoth(rs.getInt(7));
				statMemberDaily.setActive3(rs.getInt("active3"));
				statMemberDaily.setActive7(rs.getInt("active7"));
				statMemberDaily.setActive15(rs.getInt("active15"));
				statMemberDaily.setActive30(rs.getInt("active30"));
				statMemberDaily.setTotal(rs.getInt("total"));
				statMemberDaily.setShop(rs.getInt("shop"));
				return statMemberDaily;
			}
		});
	 }*/
}
